<%@ page language="java" pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>

<div id="account">
<c:if test="${not empty user }">
<script type="text/javascript">
function logout()  
{  
	var islogin=WB2.checkLogin();
	if(islogin){
		 WB2.logout(
		    		function(){
		    		var url = "${baseurl}logout.html";
		    		window.location.href= url;	
		    		}
		    );  	
	}else{
		var url = "${baseurl}logout.html";
		window.location.href= url;	
		
		
	}  
   
}
</script>
</c:if>

<div class="timer"> 北京时间: <span id="bjtime"></span>&nbsp;|&nbsp;<span>天气信息:<iframe src="http://m.weather.com.cn/m/pn7/weather.htm " width="195" height="20" marginwidth="0" marginheight="0" hspace="0" vspace="0" frameborder="0" scrolling="no"></iframe></span></div>
<div class="account_info">

<c:if test="${empty user }" >

<img src="${baseurl}resource/imgs/account_icon.png" /><span>用户:</span>&nbsp;<a href="${baseurl}login.html">注册</a>&nbsp;<a href="${baseurl}login.html" style="text-decoration: none;
background: #87cefa;
padding: 1px 2px;">登录</a>
</c:if>
<c:if test="${ not empty user }" >

<img src="${baseurl}resource/imgs/account_icon.png" /><span>用户:</span>&nbsp;<img src="${user.profileImageUrl }" width="20"/>&nbsp;<c:out value="${user.screenName }" /> &nbsp; <a href="javascript:void(0)" onClick="logout();" >退出</a>

</c:if>
<div class="clear"></div>
</div>

<div class="clear"></div>
</div>